package com.tianji.learning.controller;


import com.tianji.learning.domain.vo.PointsBoardSeasonVO;
import com.tianji.learning.service.IPointsBoardSeasonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author hzy
 * @since 2023-09-13
 */
@RestController
@RequestMapping("/boards")
@RequiredArgsConstructor
@Slf4j
@Api(tags = "赛季接口")
public class PointsBoardSeasonController {

    private final IPointsBoardSeasonService boardSeasonService;

    /**
     * 查询赛季列表
     *
     * @return
     */
    @ApiOperation("查询赛季列表")
    @GetMapping("/seasons/list")
    public List<PointsBoardSeasonVO> selectBoards() {
        return boardSeasonService.selectBoards();
    }
}
